package com.action;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.dao.HelloDao;

@Controller
public class HelloAction {
	@Resource
	private HelloDao dao;
	
	private String msg;
	
	public String excute() {
		setMsg(dao.say());
		return "success";
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	
}
